how validate array in laravel in request

91

how validate array in laravel in request -

$validator = Validator::make($request->all(), [
    "names"    => "required|array|min:3",
    "names.*"  => "required|string|distinct|min:3",
]);

Comments

Submit
0 Comments